package com.situ.javase.day10;

public class MyThread extends Thread{
	public MyThread(String name) {
		super(name);// 给线程起名字
	}

	@Override
	public void run() {
		String name = Thread.currentThread().getName();
		for (int i = 0; i < 100; i++) {
			System.out.println(name + " :  " + i);
		}
	}
}
